<?php echo '<?xml version="1.0"';?> encoding="<?php echo isset($feed['encoding']) ? $feed['encoding'] : DEFAULT_CHARSET; ?>"?>
<rss version="0.92">
<channel>
	<title><?php echo htmlentities($feed['title'], DEFAULT_CHARSET) ?></title>
	<link><?php echo $feed['link'] ?></link>
	<description><?php echo htmlentities($feed['description'], DEFAULT_CHARSET) ?></description>
	<lastBuildDate><?php echo date('r', $feed['publish_date']) ?></lastBuildDate>
	<docs>http://backend.userland.com/rss092</docs>

	<language><?php echo isset($feed['language']) ? $feed['language'] : 'en' ?></language>
<?php 
// start of items 
if ( !empty($feed['items']) && is_array($feed['items']) )
{
    foreach($feed['items'] as $item)
    {
?>
	<item>
		<title><?php echo htmlentities(strip_tags($item['title']), DEFAULT_CHARSET) ?></title>
		<description><?php echo htmlentities(strip_tags($item['description']), DEFAULT_CHARSET) ?></description>
		<link><?php echo $item['link'] ?></link>
	</item>
<?php
    }
}
?>
</channel>
</rss>
